class Product < ActiveRecord::Base
  belongs_to :product_tag
  has_many :shop_products
  has_many :wish_items

  validates_presence_of :product_tag_id

  validates_presence_of :text
  validates_length_of :text, :in => 2..140, :allow_nil => false
  validates_uniqueness_of :text
end
